//
//  ZBaseViewController.h
//  ZQLearn
//
//  Created by 朵 on 2019/4/16.
//  Copyright © 2019年 admin. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface ZBaseViewController : UIViewController<UITextFieldDelegate>

@property(nonatomic,strong)UIButton *leftBarButton;
@property (nonatomic, strong)UIBarButtonItem *rightBarButtonItem;

//左侧
-(UIButton *)addNavigationLeftButtonFrame:(CGRect)frame Image:(UIImage *)normalImage AndHighLightImage:(UIImage *)highLightImage AndText:(NSString *)text Target:(id)target Action:(SEL)action ;

//右侧
-(UIButton *)addNavgationRightButtonWithFrame:(CGRect)frame
                                        title:(NSString*)title
                                        Image:(NSString*)image
                                  selectedIMG:(NSString*)imsel
                                      tartget:(id)target
                                       action:(SEL)action;

- (void)backItemClick;


- (void)callLoginVC;


///数据为空时候显示

- (void)showNoDataImageView:(NSString *)imageName withTitle:(NSString *)title;

///数据正常时消失

- (void)hideNilImageWhenHasData;
//获取当前时间
- (NSString *)getCurrentDate;
@end

NS_ASSUME_NONNULL_END
